.TH "src/process/elfProcess/headerProcess.c" 3 "Thu Oct 11 2012" "Version 1.0" "Dissasemble" \" -*- nroff -*-
.ad l
.nh
.SH NAME
src/process/elfProcess/headerProcess.c \- 
.SH SYNOPSIS
.br
.PP
\fC#include 'headerProcess\&.h'\fP
.br
\fC#include <config\&.h>\fP
.br
\fC#include <stdio\&.h>\fP
.br
\fC#include <stdlib\&.h>\fP
.br
\fC#include <sys/types\&.h>\fP
.br
\fC#include <unistd\&.h>\fP
.br
\fC#include 'process/decode/decode\&.h'\fP
.br
\fC#include <myLib\&.h>\fP
.br

.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBs_headerProcess\fP"
.br
.RI "\fIstructure containing the name and function of each section to disassemble \fP"
.in -1c
.SS "Defines"

.in +1c
.ti -1c
.RI "#define \fBHEADER_NAME_TEXT\fP   '\&.text'"
.br
.ti -1c
.RI "#define \fBRAW_PRINT_LENGTH\fP   16"
.br
.RI "\fIRaw print length\&. \fP"
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "char \fBprocessText\fP (GElf_Shdr shdr, Elf *e, size_t shstrndx, int \fBfd\fP)"
.br
.RI "\fIFunction that processes the text contained within a section of the file\&. \fP"
.ti -1c
.RI "char \fBprocessHeader\fP (GElf_Shdr shdr, Elf *e, size_t shstrndx, int \fBfd\fP)"
.br
.ti -1c
.RI "unsigned char \fBreadBinHeaderByte\fP (GElf_Shdr shdr, int \fBfd\fP, int offset)"
.br
.RI "\fIReads the binary contents of a byte of section established\&. \fP"
.ti -1c
.RI "char \fBreadBinHeaderData\fP (GElf_Shdr shdr, int \fBfd\fP, int offset, char *buf, char \fBsize\fP)"
.br
.ti -1c
.RI "char \fBrawPrintContent\fP (int \fBfd\fP, GElf_Shdr shdr)"
.br
.RI "\fISets the hex output format to the readBinHeaderByte function\&. \fP"
.ti -1c
.RI "void \fBprintMachinePretty\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.br
.RI "\fISets output format to a machine instruction\&. \fP"
.ti -1c
.RI "void \fBprintMachine\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.br
.RI "\fIDisplays the hexadecimal number for the instruction processed\&. \fP"
.ti -1c
.RI "void \fBprintAsm\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.br
.RI "\fIDisplays the assembler instruction corresponding to the instruction analyzed\&. \fP"
.in -1c
.SS "Variables"

.in +1c
.ti -1c
.RI "\fBs_headerProcess\fP \fBheaderFunctions\fP []"
.br
.RI "\fIArray of header functions\&. \fP"
.in -1c
.SH "Define Documentation"
.PP 
.SS "#define \fBHEADER_NAME_TEXT\fP   '\&.text'"
.SS "#define \fBRAW_PRINT_LENGTH\fP   16"
.PP
Raw print length\&. 
.SH "Function Documentation"
.PP 
.SS "\fBprintAsm\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.PP
Displays the assembler instruction corresponding to the instruction analyzed\&. \fBParameters:\fP
.RS 4
\fIinst\fP Machine instruction to be set 
.RE
.PP

.SS "\fBprintMachine\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.PP
Displays the hexadecimal number for the instruction processed\&. \fBParameters:\fP
.RS 4
\fIinst\fP Machine instruction to be set 
.RE
.PP

.SS "\fBprintMachinePretty\fP (\fBMACHINE_INSTRUCTION\fP *inst)"
.PP
Sets output format to a machine instruction\&. \fBParameters:\fP
.RS 4
\fIinst\fP Machine Instruction to be set 
.RE
.PP

.SS "\fBprocessHeader\fP (GElf_Shdrshdr, Elf *e, size_tshstrndx, intfd)"\fBParameters:\fP
.RS 4
\fIshdr\fP ELF object containing the information for each section of the file 
.br
\fIe\fP Elf object containing the information of the input file 
.br
\fIshstrndx\fP Size of ELF section 
.br
\fIfd\fP Pointer to the input file 
.RE
.PP

.SS "char \fBprocessText\fP (GElf_Shdrshdr, Elf *e, size_tshstrndx, intfd)"
.PP
Function that processes the text contained within a section of the file\&. \fBParameters:\fP
.RS 4
\fIshdr\fP ELF object containing the information of a specific section of the input file 
.br
\fIe\fP Elf object containing the information of the input file 
.br
\fIshstrndx\fP Size of ELF section 
.br
\fIfd\fP Pointer to the input file 
.RE
.PP

.SS "\fBrawPrintContent\fP (intfd, GElf_Shdrshdr)"
.PP
Sets the hex output format to the readBinHeaderByte function\&. \fBParameters:\fP
.RS 4
\fIshdr\fP ELF object containing the information of a specific section of the input file 
.br
\fIfd\fP Pointer to the input file 
.RE
.PP

.SS "\fBreadBinHeaderByte\fP (GElf_Shdrshdr, intfd, intoffset)"
.PP
Reads the binary contents of a byte of section established\&. \fBParameters:\fP
.RS 4
\fIshdr\fP ELF object containing the information of a specific section of the input file 
.br
\fIfd\fP Pointer to the input file 
.br
\fIoffset\fP Establishes position where you start reading
.br
\fIshdr\fP ELF object containing the information of a specific section of the input file 
.br
\fIfd\fP Pointer to the input file 
.br
\fIoffset\fP Establishes position where you start reading 
.br
\fIbuf\fP buffer containing the portion of the file that has been read 
.br
\fIsize\fP Portion size to be read 
.RE
.PP

.SS "char \fBreadBinHeaderData\fP (GElf_Shdrshdr, intfd, intoffset, char *buf, charsize)"
.SH "Variable Documentation"
.PP 
.SS "\fBs_headerProcess\fP \fBheaderFunctions\fP[]"\fBInitial value:\fP
.PP
.nf

{
{ HEADER_NAME_TEXT, processText },
{ 0, 0 } }
.fi
.PP
Array of header functions\&. 
.SH "Author"
.PP 
Generated automatically by Doxygen for Dissasemble from the source code\&.
